package cn.liulin.llmojie.controller;

import cn.liulin.llcommon.pojo.response.ResObj;
import cn.liulin.llmojie.config.AddressConfig;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * cn.liulin.llmojie.controller$
 *
 * @author ll
 * @date 2022-01-19 16:17:05
 **/
@RestController
@RequestMapping("/mojie/address")
public class AddressController {

    @Resource
    private AddressConfig addressConfig;

    @RequestMapping("/getAddressName")
    public ResObj getAddressName() {
        return ResObj.ok(addressConfig.getName());
    }
}
